package com.wp.design.structural.proxy.dynamicProxy;

import com.wp.design.structural.proxy.IOrderService;
import com.wp.design.structural.proxy.Order;
import com.wp.design.structural.proxy.OrderServiceImpl;

public class Test {
	public static void main(String[] args) {
		Order order = new Order();
		IOrderService orderService = (IOrderService)new DynamicProxy(new OrderServiceImpl()).bind();
		int result = orderService.insertOrder(order);
		System.out.println(result);
	}
}
